﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication5
{
    public class Water:Abstractbarrier
    {
        private Rectangle water;
        private Data data;
        public Rectangle Rect
        {
            get { return water; }
            set { water = value; }
        }

        public override void PrintLocation()
        {
            Str = " ";
            Str = "Position X:" + Convert.ToString(Rect.Location.X) + "  Y:" + Convert.ToString(Rect.Location.Y);
        }

        public override void PrintParameters()
        {
            Str = " ";
            Str = "Parameters Width:" + Convert.ToString(Rect.Width) + "  Height:" + Convert.ToString(Rect.Height);
        }

        public Water(int x, int y)
        {
            data = new Data();
            water = new Rectangle();
            water.Size = new Size(data.water_width, data.water_height);
            water.Location = new Point(x, y);
        }
    }
}
